import java.util.Scanner;
public class double_demo {



        public static void main(String[] args) {
            Scanner scanner = new Scanner(System.in);
            double d= scanner.nextDouble();
            long i = Math.round(d);


            //write your code here......


            System.out.println(i);
        }
    }

